﻿using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;

using ApiTest.Entitys;
using ApiTest.Services;

using ApiTest2.Entitys;

using Apps.Shared.IServices;

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace ApiTest.Controllers
{
    [Route("[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        /// <summary>
        /// 从注册中心接入 远端服务 
        /// </summary>
        [MtpResource]
        public readonly ISysAdminService sysAdminService;

        [Get]
        public SysAdmin Test()
        {
            return sysAdminService.GetSysAdmin();
        }




    }
}
